// 导入变量文件
@use './variables.scss' as *;

// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: $font-size-base;
  color: $text-primary;
  background-color: $background-color-base;
  line-height: $line-height-base;
  transition: background-color 0.3s ease, color 0.3s ease;
}

// 深色模式样式
.dark-mode {
  background-color: #1a1a1a;
  color: #e5e5e5;
  
  // 更新所有文本颜色
  h1, h2, h3, h4, h5, h6 {
    color: #e5e5e5;
  }
  
  // 更新卡片背景
  .el-card {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e5e5e5;
  }
  
  // 更新输入框样式
  .el-input__wrapper {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e5e5e5;
  }
  
  .el-input__inner {
    background-color: transparent;
    color: #e5e5e5;
  }
  
  // 更新按钮样式
  .el-button {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e5e5e5;
  }
  
  .el-button:hover {
    background-color: #404040;
    border-color: #555555;
  }
  
  // 更新侧边栏样式
  .app-aside {
    background-color: #2d2d2d;
    border-color: #404040;
  }
  
  .nav-item a {
    color: #c0c4cc;
  }
  
  .nav-item a:hover {
    background-color: #404040;
    color: #409eff;
  }
  
  .nav-item a.active {
    background-color: #1e3a8a;
    color: #409eff;
  }
  
  // 更新主要内容区域
  .main-content {
    background-color: #1a1a1a;
  }
  
  // 更新滚动条样式
  ::-webkit-scrollbar-track {
    background: #2d2d2d;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #555555;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #666666;
  }
}

// 通用样式
.el-button {
  border-radius: $border-radius-base;
}

.el-card {
  border-radius: $border-radius-base;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid $border-color-light;
}

.el-input__wrapper {
  border-radius: $border-radius-base;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: $border-color-lighter;
}

::-webkit-scrollbar-thumb {
  background: $text-placeholder;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: $text-secondary;
}